<template>
  {{ obj1 }}
  <a-button @click="deleteAge">删除</a-button>
</template>

<script>
import { reactive } from "vue";
export default {
  name: "static",
  setup() {
    const obj1 = reactive({ count: 1, age: 2 });
    return { obj1 };
  },
  methods: {
    deleteAge() {
      console.log(this);
      delete this.obj1.age
    },
  },
};
</script>